package com.peanut.baby.mvp.calendar;

import com.peanut.baby.model.CalendarRecord;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/9/6.
 */

public interface CalendarContract {
    interface View extends BaseView{
        void onDataGet(List<CalendarRecord> records);
        void onDataGetFailed(String reason);
        void onSubmitDataSuccess(CalendarRecord record);
        void onSubmitDataFailed(String reason);
    }
    interface Presenter extends BasePresenter{
        void updateData(String date, String dayima, String tongfang, String tiwen, String yesuan, String baidai);
        void getData();
        CalendarRecord getRecordFromDB(int uid, String date);
    }
}
